Skip to content

Conversation

dslovinsky
Copy link
Collaborator

@dslovinsky dslovinsky commented Jul 28, 2025

Description

Currently we have some JS which is slowing down the site. For some reason this was set as beforeInteractive which means its render-blocking. So what if we just like, didn't do that.

Related Issues

Changes Made

  • Make heap script and dashboard-referral scripts afterInteractive

Testing

  • I have tested these changes locally
  • I have run the validation scripts (pnpm run validate)
  • I have checked that the documentation builds correctly

@dslovinsky dslovinsky self-assigned this Jul 28, 2025
Copy link

github-actions bot commented Jul 28, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Jul 28, 2025, 10:35 PM

@github-actions github-actions bot temporarily deployed to docs-preview July 28, 2025 22:02 Destroyed
@github-actions github-actions bot temporarily deployed to docs-preview July 28, 2025 22:23 Destroyed
@dslovinsky dslovinsky marked this pull request as ready for review July 28, 2025 22:33
@dslovinsky dslovinsky requested a review from a team as a code owner July 28, 2025 22:33
@github-actions github-actions bot temporarily deployed to docs-preview July 28, 2025 22:34 Destroyed
@github-actions github-actions bot temporarily deployed to docs-preview July 28, 2025 22:34 Destroyed
- path: assets/dashboard-referral.js
strategy: beforeInteractive
strategy: afterInteractive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait it looks like below you are removing this script entirely? can't this be removed from docs.yml too then?

Copy link
Collaborator Author

@dslovinsky dslovinsky Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah no! Sorry I should have made that clearer. I'm just removing the TS source code of this script since it's not really needed anymore (assuming we aren't making regular changes). The actual script we're using here is a transpiled version in assets.

I can leave it if you prefer but seems like bad practice to have both source and transpiled version in source control

@dslovinsky dslovinsky merged commit b21d975 into main Jul 29, 2025
8 checks passed
@dslovinsky dslovinsky deleted the ds/lazy-load-custom-app branch July 29, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants